<?php defined('SYSPATH') or die('No direct script access.');

class Model_Book extends ORM 
{
	protected $_table_name = 'book';
	
	protected $_has_many = array('images' => array('model' => 'image', 'through' => 'book_image'));
	
	protected $_has_one = array('thumb' => array('model' => 'image', 'foreign_key' => 'thumb_id'));
}